#include <iostream>
#include "shared_ptr.h"

using namespace std;

shared_ptr<int> subFunc(){
	shared_ptr<int> pint = make_shared<int>(100);
	return pint;
}

int main(){
	shared_ptr<int> p = subFunc();
	shared_ptr<int> p2 = make_shared<int>(200);
	p2 = p;
	cout << *p2 << endl;
	cout << *p << endl;
	return 0;
}
